<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="laborc" uri="/laborc-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
     <s:head theme="ajax"/>
    <title>计算机学院毕业设计管理系统-新闻列表</title>
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="../css/showNewsContent.css">
</head>
<body>
<div id="newsList">新闻列表</div>
<div style="width:100%;text-align:center;">
<s:if test="allNewsList!=null">
<table id="newsTable0">
<s:iterator id="id" status="st" value="%{allNewsList}">
		<tr>
		<td class="newsTable_31">
		<a target="_blank" href=showNewsContent.action?newsId=${id.newsId}><img src="img/main1.gif" id="mainImg"/></a>
		</td>
		
			<s:if test="%{#id.newsTitle.length()>30}">
				<td class="newsTable_11">
					<a target="_blank" href=showNewsContent.action?newsId=${id.newsId}><s:property value="%{#id.newsTitle.substring(0,30)}" /></a>
					…
				</td>
			</s:if>
			<s:else>
				<td >
					<a target="_blank" href=showNewsContent.action?newsId=${id.newsId}><s:property value="%{#id.newsTitle}" /></a>
				</td>
			</s:else>
			<td class="newsTable_21">
				${id.newsDate}
			</td>
			<s:if test="%{#session.qx=='11'}">
			<td><a name="delete" id="deleteNews" href=zcg/deleteNews.action?newsId=${id.newsId}>删除</a></td>
			</s:if>
		</tr>
</s:iterator>
</table>
</s:if>
<s:else>暂无新闻</s:else></div>
<br>
<div id="pageId" align="right"><laborc:page cpage="%{cpage}" total="%{total}" url="%{url}"/>
 </div>
 <s:if test="%{#session.qx!='11'}">
<div id="closeWindow">
			<p>
				<br>

			</p>
			<s:submit name="closeIE" value="关闭窗口" onclick="window.close();"
				align="center"></s:submit>

			<div align="center">
				<br>

				<font size="2"> 版权所有：杭州电子科技大学</font>
			</div>
		</div>

</s:if>
</body>
</html>